﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Module_CountryDetail : PanelControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        bindDV();
    }
    CountryBusiness cb = new CountryBusiness();
    int countryID = Helper.getQuery("countryID");
    public void bindDV()
    {
        DataTable dt = cb.getCountryTable(countryID);
        if (dt != null)
        {
            DetailsView1.DataSource = dt;
            DetailsView1.DataBind();
        }
    }

    public string ViewImage()
    {
        return "<img src='/eprojectAirlinesReservationSystem/ImageView.aspx?countryID=" + countryID + "' width=\"600px\" height=\"400px\"/>";
    }
}